//
//  DeviceInfo.h
//  KEREN
//
//  Created by MW on 2023/3/14.
//

#import <Foundation/Foundation.h>
#import "DeviceConfig.h"
NS_ASSUME_NONNULL_BEGIN
@interface DeviceInfo : NSObject

+ (instancetype)initWithDictionary:(NSDictionary *)jsonDic;

@property (nonatomic, strong) NSString *name;
@property (nonatomic, strong) NSString *color;
@property (nonatomic, strong) NSString *frame_code;//车架号
@property (nonatomic, strong) NSString *mac;//mac地址
@property (nonatomic, strong) NSString *imei;
@property (nonatomic, strong) NSString *iccid;
@property (nonatomic, strong) NSString *imsi;
@property (nonatomic, strong) NSString *created_at;//创建日期
@property (nonatomic, strong) NSString *engine_code;//发动机代码
@property (nonatomic, strong) NSString *sn_code;//SN号
@property (nonatomic, strong) NSString *photo;
@property (nonatomic, strong) NSString *image;
@property (nonatomic, strong) NSString *type_name;
@property (nonatomic, strong) NSString *firmware_version;
@property (nonatomic, strong) NSString *store_name;//车辆名字
@property (nonatomic, assign) NSInteger device_type_id;
@property (nonatomic, copy)   NSString *device_type_name; //车辆类型
@property (nonatomic, assign) NSInteger firmware_id;
@property (nonatomic, assign) NSInteger status;//0正常 1锁定 2 异常
@property (nonatomic, assign) NSInteger is_bind;
@property (nonatomic, assign) NSInteger is_manager; //主帐户设备
@property (nonatomic, assign) NSInteger Id;
@property (nonatomic, assign) NSInteger ebike_id;
@property (nonatomic, assign) NSInteger socket_type;//0 蓝牙版，1 4G版

@property (nonatomic, assign) NSInteger power_status;//车辆开启状态 0 关闭 1 启动中 2 启动成功
@property (nonatomic, assign) NSInteger lock_status;//车辆锁定状态 0 锁定状态 1 未锁定
@property (nonatomic, assign) NSInteger online_status;//车辆是否在线
@property (nonatomic, assign) NSInteger warranty_period_time;//三包时间
@property (nonatomic, assign) NSInteger activation_time;
@property (nonatomic, assign) NSInteger buy_time;

@property (nonatomic, assign) NSInteger battery_type; //1 锂电池   2 铅酸电池
@property (nonatomic, copy)   NSString *battery_capacity;//电池电容
@property (nonatomic, assign) BOOL is_show_couch;
@property (nonatomic, strong) NSArray *additional_props;

@property (nonatomic, strong)DeviceConfig *deviceConfig;

-(BOOL)is4GDevice;


@end

NS_ASSUME_NONNULL_END
